import pandas as pd

df = pd.DataFrame({"x":[1,2,3,4,5],"季节":['春','夏','秋','冬','秋']})

# pd.get_dummies(rides[each],prefix=each,drop_first=False)
df = pd.get_dummies(df['季节'],prefix='季节',drop_first=False,dtype=int)
print(df)

s = pd.Series(list('abca'))
print(pd.get_dummies(s,dtype=int))